﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Win.master" AutoEventWireup="true" CodeBehind="CustomerProduct.aspx.cs" Inherits="Runda.EShop.SaaS.CustomerManage.CustomerProduct" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
<style type="text/css">
.i_content {width:973px;margin-top: 2px;margin-right: auto;margin-bottom: 0;margin-left: auto;clear:both;}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
        <div class="i_content"> 
            <div class="i_center">
<div class="i_tablebt_xian" style="margin:10px 0px 0px 0px; width:100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />客户基本信息</span>
    </div>
<div class="clear"></div>
 <table style="width:100%" border="0" cellspacing="0" cellpadding="0"  class="margin-left15 l i_center_table0 margin-top18">
 <tr>
 <td>客户名</td><td>
     <asp:Literal ID="ltlCustomerName" runat="server"></asp:Literal></td><td>登录账号</td><td><asp:Literal ID="ltlCustomerCode" runat="server"></asp:Literal></td>
 </tr>
  <tr>
 <td>部门</td><td colspan="3">
          <asp:Literal ID="ltlDeptName" runat="server"></asp:Literal>
      </td>
 </tr>
 </table>
 <div class="clear"></div>
<div class="i_tablebt_xian" style="margin:10px 0px 0px 0px; width:100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />客户关联产品</span>
        <span class="r"><a href="javascript:void(0);" onclick="return OnOpenWinCustom('CustomerProductAdd.aspx?CustomerID=<%= CustomerID%>','添加产品',950,600);">添加产品</a></span>
    </div>
<div class="clear"></div>
                <asp:Button ID="btnRefersh" runat="server" Text="刷新" onclick="btnRefersh_Click" style="display:none;" ClientIDMode="Static" />
 <asp:GridView ID="gvProductList" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="ProductID" onrowdeleting="gvProductList_RowDeleting">
        <Columns>
            <asp:TemplateField HeaderText="产品编号">
                <ItemTemplate>
                    <asp:LinkButton ID="lnkbtnView" runat="server" OnClientClick='<%# "return OnOpenWin(\"../BasManage/ProductView.aspx?ProductID="+Eval("ProductID")+"\",\"查看\");" %>'><%# Eval("ProductCode") %></asp:LinkButton> 
                </ItemTemplate>
            </asp:TemplateField>
          <asp:BoundField DataField="ProductName" HeaderText="产品名称" />
          <asp:BoundField DataField="Alias" HeaderText="简称" />
          <asp:BoundField DataField="Standard" HeaderText="规格" />
          <asp:BoundField DataField="Unit" HeaderText="单位" />
          <asp:TemplateField HeaderText="操作">
          <ItemTemplate>
              <asp:LinkButton ID="lnkbtnDelete" runat="server" CommandName="delete">删除</asp:LinkButton>
          </ItemTemplate>
          </asp:TemplateField>
        </Columns>            
        </asp:GridView>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb" 
        CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
        ShowCustomInfoSection="Left" CustomInfoSectionWidth="180px" PageSize="15"
        NumericButtonCount="10" onpagechanged="AspNetPager1_PageChanged"></webdiyer:AspNetPager>
 </div>
 </div>
</asp:Content>
